<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<h1>View config</h1>

<h2>Bank accounts</h2>
<table>
    <s:iterator value="bankAccounts" var="bankAccount">
        <tr>
            <td>${bankAccount.key}</td>
            <td>${bankAccount.value.name}</td>
            <td>${bankAccount.value.idInBank}</td>
            <td><s:property value="value.idInBank"/></td>
            <td><s:property value="value.updatedDate"/></td>
            <td><s:property value="value.createdDate"/></td>
        </tr>
    </s:iterator>
</table>

<h2>Budget accounts</h2>
<table>
    <s:iterator value="budgetAccounts" var="budgetAccount">
        <tr>
            <td>${budgetAccount.key}</td>
            <td>${budgetAccount.value.name}</td>
            <td>${budgetAccount.value.mainGroup.name}</td>
            <td><s:property value="value.updatedDate"/></td>
            <td><s:property value="value.createdDate"/></td>
        </tr>
    </s:iterator>
</table>

<h2>Account Groups</h2>
<table>
    <s:iterator value="accountGroups" var="group">
        <tr>
            <td>${group.key}</td>
            <td>${group.value.name}</td>
            <td><s:property value="value.updatedDate"/></td>
            <td><s:property value="value.createdDate"/></td>
        </tr>
    </s:iterator>
</table>

<h2>Bank Types</h2>
<table>
    <s:iterator value="bankTypes" var="type">
        <tr>
            <td>${type.key}</td>
            <td>${type.value.name}</td>
            <td><s:property value="value.updatedDate"/></td>
            <td><s:property value="value.createdDate"/></td>
        </tr>
    </s:iterator>
</table>

<h2>Budget Account Groups</h2>
<table>
    <s:iterator value="budgetAccountGroups" var="group">
        <tr>
            <td>${group.key}</td>
            <td>${group.value.budgetAccount.name}</td>
            <td>${group.value.accountGroup.name}</td>
            <td><s:property value="value.updatedDate"/></td>
            <td><s:property value="value.createdDate"/></td>
        </tr>
    </s:iterator>
</table>

<h2>Text => Budget Accounts</h2>
<table>
    <s:iterator value="textBudgetAccounts" var="text">
        <tr>
            <td>${text.key}</td>
            <td>${text.value.text}</td>
            <td>${text.value.budgetAccount.name}</td>
            <td><s:property value="value.updatedDate"/></td>
            <td><s:property value="value.createdDate"/></td>
        </tr>
    </s:iterator>
</table>
